package top.hihuzi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.LongStream;

@SpringBootApplication
@EnableEurekaClient
@RestController
public class AppEurekaClient {
    public static void main(String[] args) {
        SpringApplication.run(AppEurekaClient.class, args);
    }

    @RequestMapping("/")
    public List<String> tosay() {
        return LongStream.range(1, 100).mapToObj(operand -> "".join("V", "--", "--")).collect(Collectors.toList());
    }
}


